import React from 'react'
import {connect} from 'react-redux'
import {getUserList} from '../../redux/chatuser.redux'
import UserCard from '../usercard/usercard'
@connect(
    state=>state.chatuser,
    {getUserList}
    
)
class Genius extends React.Component{
    render(){
        console.log(this.props.userlist)
        return(
            <UserCard userlist={this.props.userlist} />
        )
    }
    componentDidMount(){
        this.props.getUserList('boss')
    }
}
export default Genius;